package com.isunland.managesystem.adapter;

import android.content.Context;
import com.isunland.managesystem.base.BaseShadowListAdapter;
import com.isunland.managesystem.entity.CustomerProblemDeal;
import com.isunland.managesystem.utils.MyDateUtil;
import com.isunland.managesystem.utils.MyUtils;
import java.util.List;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/2/23 13:45
 */
public class CustomerProblemDealListAdapter extends BaseShadowListAdapter<CustomerProblemDeal> {
  public CustomerProblemDealListAdapter(Context context, List<CustomerProblemDeal> objects) {
    super(context, objects);
  }

  @Override public void bindData(int position, ViewHolder vh, CustomerProblemDeal item) {
    MyUtils.switchShadowStutus(getContext(), vh.mContentStatusTv, item.getDataStatus());//数据状态
    vh.mContentTwoTv.setText(item.getDealDesc());
    vh.mPersonNameTv.setText(item.getRegStaffName());
    vh.mPersonDataTv.setText(item.getRegDate());
    MyDateUtil.parseDateToString(MyDateUtil.stringToDate(item.getRegDate()));
  }
}
